<!DOCTYPE html>
    <html>
    <head>
        <title>{{htmlspecialchars($page['title']?$page['title']:$_L['config']['web']['title'])}}</title>
        <meta name="keywords" content="{{htmlspecialchars($page['keywords']?$page['keywords']:'')}}" />
        <meta name="description" content="{{htmlspecialchars($page['description']?$page['description']:'')}}" />
        <meta name="renderer" content="webkit" />
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0{{is_pc()?'':', viewport-fit=cover'}}" />
        <meta name="referrer" content="no-referrer-when-downgrade" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="framework" content="55uY5LyBwq5QSFDlvIDlj5HmoYbmnrY" />
        <if $_L['url']['scheme']=="https://">
            <if in_string($_SERVER['HTTP_USER_AGENT'], "firefox")>
                <meta http-equiv="X-Content-Security-Policy" content="upgrade-insecure-requests" />
                <else/>
                <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
            </if>
        </if>
        <link rel="shortcut icon" href="{{$page['favicon']?:''}}" />
        <script type="text/javascript">
            var LCMS = {url:JSON.parse(`{{json_encode($_L['url'],JSON_HEX_APOS)}}`),config:{ver:`{{$_L['config']['ver']}}`,oss:`{{$_L['plugin']['oss']['type']}}`,cdn:`{{$_L['plugin']['oss']['domain']}}`}};
        </script>
        <if !$_L['ui']['nocache']>
            <link rel="stylesheet" href="{{str_replace(PATH_WEB,$_L['url']['site'],TPL::$cname)}}.css?tplver={{TPL::$ver}}&lcmsver={{$_L['config']['ver']}}" />
        </if>
        <if $_L['ui']['css-root']>
            <?php $cssroot = "<style type=\"text/css\">:root{";?>
            <loop $_L['ui']['css-root'],$v,$n>
                <?php $cssroot .= "--{$n}:{$v};";?>
            </loop>
            <?php echo $cssroot .= "}</style>";?>
        </if>
        <if $_L['ui']['css']>
            <loop array_unique($_L['ui']['css']),$css>
                <link rel="stylesheet" href="{{str_replace(PATH_WEB,$_L['url']['site'],$css)}}?tplver={{TPL::$ver}}" />
            </loop>
        </if>
        <if $_L['ui']['js-head']>
            <loop array_unique($_L['ui']['js-head']),$js>
                <script type="text/javascript" src="{{str_replace(PATH_WEB, $_L['url']['site'], $js)}}?tplver={{TPL::$ver}}"></script>
            </loop>
        </if>
        <if $_L['ui']['htmlhead']>
            {{implode(PHP_EOL, $_L['ui']['htmlhead'])}}
        </if>
    </head>
    <body>